import { DataIndex, OnLinePeriodEnum } from '@/core/enums/name'

export const onLinePeriodMap: Record<DataIndex, OnLinePeriodEnum> = {
  [DataIndex.Platform7x24]: OnLinePeriodEnum.All_Day,
  [DataIndex.Platform5x8]: OnLinePeriodEnum.Work_Day,
  [DataIndex.Mobile7x24]: OnLinePeriodEnum.All_Day,
  [DataIndex.Mobile5x8]: OnLinePeriodEnum.Work_Day,
  [DataIndex.Pc7x24]: OnLinePeriodEnum.All_Day,
  [DataIndex.Pc5x8]: OnLinePeriodEnum.Work_Day
}

export const onLinePeriodReverseMap: Record<OnLinePeriodEnum, string> = {
  [OnLinePeriodEnum.All_Day]: '7x24',
  [OnLinePeriodEnum.Work_Day]: '5x8'
}
